home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Prograph Classic 2.6.1 / Examples / Nifty Buttons / Nifty Buttons ReadMe next >
Text File  |  1995-09-28  |  2KB  |  37 lines

  1. Example:                        Amazing Buttons
  2. Written by:                    Garth Smedley, Pictorius Incorporated
  3. Updated for 2.6.1 by:            The Tech Support Team, Pictorius Incorporated
  4.  
  5. Contents:     Amazing Buttons.pgs
  6.                    Amazing Buttons ReadMe
  7.  
  8. Needs Prograph Extensions:
  9.                     The default configuration of your 'Prograph Extensions' folder.
  10.                     
  11. Needs Libraries to Compile:
  12.                     SCLibrary 2.6
  13.                     Library 2.6
  14.  
  15. Standard Methods That Were Modified:
  16.                    None
  17.  
  18. New Classes:
  19.                                      Pict Button ( a subclass of Pict )
  20.                                      Icon Button ( a subclass of Icon )
  21.                                      Icon Check Box ( a subclass of "Icon Button" )
  22.  
  23. Description:
  24. -----------
  25. A "Pict Button" looks like a picture and acts like a button. Click on it and it hilites — move the mouse and it unhilites — release the mouse and it beeps (or does whatever you specify in your click method). 
  26.  
  27. An "Icon Button" is really two icons; one is displayed normally, the other when the mouse is held down over the first. "Icon Button" has an extra attribute, "other rsrc number", which contains the resource number of the icon to be displayed while the mouse is down.  This is particularly useful for creating "3-D button" effects.
  28.  
  29. An "Icon Check Box" is similar to an "Icon Button" except the second icon stays around after the mouse is released over it.  "Icon Button" has two extra attributes -  "other rsrc number", which contains the resource number of the icon to be displayed while the mouse is down, and "checked?", which is TRUE when the first icon is displayed.
  30.  
  31. How to Use in Your Program
  32. -------------------------
  33. Load the classes into your application.  Add Pict Buttons, Icon Buttons and Icon Check Boxs to your windows using the window editor. To specify a second icon for Icon Buttons and Icon Check Boxs, slam click (hold the command, option and shift keys down while clicking)  on the item in the window editor. An attribute window will be opened, scroll down to the bottom, double click on the "other rsrc number" attribute and enter the resource id. 
  34.  
  35. If you want use the icons from the example program, copy them into your file with ResEdit. You can also use ResEdit to create and edit your own icons. ResEdit 2.1.1 has a good icon editor.
  36.  
  37.